<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html dir="ltr" xmlns="http://www.w3.org/1999/xhtml">

<head>
<title>Swim 2.0</title>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<link href="layout.css" rel="stylesheet" type="text/css" />
<link href="style.css" rel="stylesheet" type="text/css" />
</head>

<body>


<div id="container">
	<div id="masthead" class="navBG">
		<%@ include file="log.jsp" %>
	</div>
	
	<div id="left_col" class="navBG">
		<%@ include file="menu.jsp" %>
	</div>
	<div id="page_content">
<% User u = (User) request.getAttribute("user");
	if(u!=null) {%>
	<div class="navButton">
	<a href="HelpRequestServlet?act=showRequestForm&receiver=<%= u.getUsername()%>">
		<input name="helpRequest" type="button" value="Richiesta Aiuto" />
	</a>
<% if( ((Boolean)request.getAttribute("isFriend"))==false && ((Boolean)request.getAttribute("existsFrRequest"))==false ) { %>
	<a href="FriendshipRequestServlet?act=sendRequest&receiver=<%= u.getUsername()%>">
		<input name="friendshipRequest" type="button" value="Richiesta Amicizia" />
	</a>
<% } %>
	</div>
		<%@ include file="buildProfile.jsp" %>
	</div>
<% } %>
	<div id="footer" class="navBG">
	<p> Aliprandi-Belladelli </p>
	</div>
</div>


</body>
</html>